package com.xul.srb.sms.clinet;

import com.xul.common.result.Result;
import com.xul.srb.sms.clinet.fallback.CoreUserInfoClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xul
 * @create 2022-07-17 11:23
 */

@FeignClient(value = "service-core", fallback = CoreUserInfoClientFallback.class)
public interface CoreUserInfoClient {

    /**
     * 校验手机号是否注册
     *
     * @param mobile
     * @return
     */
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    Result checkMobile(@PathVariable String mobile);
}
